package com.xique.park.constant.message;

/**
 * Created by IntelliJ IDEA.
 * 设备相关常量
 * @author Administrator
 * description:
 * path: park2020-com.jzy.constant.message-DeviceConstants
 * date: 2020/8/20 14:46
 */
public class DeviceDtConstants {
    /***********************通用***********************/
    public static final String DATE = "date";

    /***********************主设备***********************/
    public static final String LANE_ID = "lane_id";
    //设备类型
    public static final String DEV_TYPE = "dev_type";
    public static final String DEV_IP = "ip";
    public static final String MAC = "mac";
    public static final String GATEWAY = "gateway";
    public static final String DNS = "dns";
    //二次开发软件版本
    public static final String FW_VER = "fw_ver";
    //摄像机软件版本
    public static final String IPC_VER = "ipc_ver";
    //服务校验时间误差是否大于1秒，否则主动矫正设备时
    public static final String DEV_DATE = "date";
    //剩余车位
    public static final String DEV_REM_CNT = "rem_cnt";
    //是否配置SD卡
    public static final String IS_SD_CARD = "is_sd_card";

    //控制卡
    public static final String BOARD = "board";
    //控制卡端口
    public static final String BOARD_PORT = "port";
    /**控制卡默认端口号*/
    public static final Integer BOARD_PORT_DEFAULT = 1;
    //控制卡类型
    public static final String BOARD_TYPE = "type";
    //控制卡地址
    public static final String BOARD_ADDR = "addr";
    /**控制卡默认地址*/
    public static final Integer BOARD_ADDR_DEFAULT = 0;
    //控制卡波特率
    public static final String BOARD_BAUD = "baud";
    //控制卡默认波特率
    public static final Integer BOARD_BAUD_DEFAULT = 115200;
    /***********************附属摄像机***********************/
    //摄像机设备类型
    public static final String TYPE = "type";
    /**摄像机设备类型：臻识*/
    public static final Integer TYPE_VZ = 1;
    /**摄像机设备类型：华夏*/
    public static final Integer TYPE_HX = 2;
    /**摄像机设备类型：芊熠*/
    public static final Integer TYPE_QY = 3;

    public static final String IPCSN = "ipcsn";
    public static final String IP = "ip";
    public static final String VER = "ver";

    //设备在线状态
    public static final String STATUS = "status";
    /**设备在线状态：在线*/
    public static final Integer STATUS_ONLINE = 1;
    /**设备在线状态：离线*/
    public static final Integer STATUS_OFFLINE = 0;
    public static final String IPC_DATA = "data";

    /***********************道闸***********************/
    public static final String GATE_PORT = "port";
    public static final Integer  GATE_PORT_DEFAULT = 1;
    //开闸状态
    public static final String ACT = "act";
    /**开闸状态：取消常开*/
    public static final Integer ACT_CANCEL_ON = 0;
    /**开闸状态：常开*/
    public static final Integer ACT_ALWAYS_ON = 1;
    /**开闸状态：开闸，表示继电器闭合的时间（毫秒），通常取值500毫秒*/
    public static final Integer ACT_ON_DEFAULT_MS = 500;

    //开闸是否抓拍图片
    public static final String TRG = "trg";
    /**开闸是否抓拍图片：不抓拍*/
    public static final Integer TRG_NOPIC = 0;
    /**开闸是否抓拍图片：抓拍*/
    public static final Integer TRG_PIC = 1;

    /***********************RS485控制板***********************/
    public static final String RS485_DATA = "data";
    public static final String RS485_PORT = "port";
    public static final Integer  RS485_PORT_DEFAULT = 1;

    /**************************附加设备上线/下线***************************/
    //副摄像机
    public static final String SLAVE_IPC = "slave_ipc";
    //余位显示屏
    public static final String REMAIN_DISPLAY = "remain_display";
    //扫描仪
    public static final String SCANNER = "scanner";
    /**附加设备在线状态*/
    public static final String SUBDEV_STATUS = "status";
    public static final Integer SUBDEV_STATUS_ONLINE = 1;
    public static final Integer SUBDEV_STATUS_OFFLINE = 0;

}
